<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping
  xmlns="urn:nhibernate-mapping-2.2" assembly="FJASPX.Domain" namespace="FJASPX.Domain">
  <class name="ProductCategory" table="cms_product_class" lazy="false" >
    <id name="Id" type="Int32" unsaved-value="0" >
      <column name="cid" length="4" sql-type="int" not-null="true" unique="true" />
      <generator class="identity"  />
    </id>
    <property name="Name" type="String">
      <column name="name" length="50" sql-type="varchar"/>
    </property>
    <property name="Description" type="String">
      <column name="description" length="100" sql-type="varchar"/>
    </property>
    <property name="Sort" type="Int32">
      <column name="sort" length="4" sql-type="int" />
    </property>
    <property name="ParentId" type="Int32">
      <column name="fatherid" length="4" sql-type="int"/>
    </property>
    <property name="ParentPath" type="String">
      <column name="parentpath" length="50" sql-type="varchar" />
    </property>
    <property name="IsRecommend" type="Int32">
      <column name="isrecommend" length="4" sql-type="int"/>
    </property>
    <property name="SectionTemplate" type="String">
      <column name="sectiontemplate" length="50" sql-type="varchar" />
    </property>
    <property name="ListTemplate" type="String">
      <column name="listtemplate" length="50" sql-type="varchar" />
    </property>
    <property name="ContentTemplate" type="String">
      <column name="contenttemplate" length="50" sql-type="varchar" />
    </property>

    <property name="TimeStamp" type="DateTime">
      <column name="CreateTime" length="8" sql-type="datetime" />
    </property>
    <property name="Creator" type="String">
      <column name="Creator" length="50" sql-type="varchar" />
    </property>
  </class>
</hibernate-mapping>

